<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>部品库管理终端</title>
  <meta name="keywords" content="部品库管理终端">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="/assets/i/favicon.png">
  <link rel="apple-touch-icon-precomposed" href="/assets/i/app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="/assets/css/amazeui.min.css"/>
  <link rel="stylesheet" href="/assets/css/admin.css">
  <link rel="stylesheet" href="/assets/css/app.css">
</head>
</head>
<body>

<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->

<header class="am-topbar am-topbar-inverse admin-header">
  <div class="am-topbar-brand">
      <img src="/assets/i/worker.png" width="36" height="36" onclick="window.location.href='/store/index';"> <strong>部品库管理终端</strong>
  </div>
</header>

#if(notice)
<script>
  alert("#(notice)");
</script>
#end

<div class="am-cf admin-main">
  <!-- content start -->
  <div class="admin-content">
    <div class="admin-content-body">
      <div class="am-cf am-padding am-padding-bottom-0">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">修改计划</strong></div>
      </div>
      <hr>
      <div class="am-g">
          <form class="am-form" method="post" action="/store/update">
            <input type="hidden" name="scheduler.id" value="#(scheduler.id)">
            <div class="am-tab-panel am-fade am-in am-active">
              <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 am-text-right">公司名称</div>
                <div class="am-u-sm-8 am-u-md-10">
                  <input type="text" name="scheduler.company" style="width:250px;" value="#(scheduler.company??)">
                </div>
              </div>
              <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 am-text-right">车牌号码</div>
                <div class="am-u-sm-8 am-u-md-10">
                  <input type="text" name="scheduler.van" style="width:250px;" value="#(scheduler.van??)">
                </div>
              </div>
              <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 am-text-right">入库位置</div>
                <div class="am-u-sm-8 am-u-md-10">
                  <input type="text" name="scheduler.position" style="width:250px;" value="#(scheduler.position??)">
                </div>
              </div>
              <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 am-text-right">计划入库时间</div>
                <div class="am-u-sm-8 am-u-md-10">
                  <select data-am-selected="{btnWidth: 100}" name="hour">
                    <option value="8">08</option>
                    <option value="9" selected>09</option>
                    <option value="10">10</option>
                    <option value="11">11</option>
                    <option value="12">12</option>
                    <option value="13">13</option>
                    <option value="14">14</option>
                    <option value="15">14</option>
                    <option value="16">14</option>
                    <option value="17">14</option>
                    <option value="18">14</option>
                  </select>
                  :
                  <select data-am-selected="{btnWidth: 100}" name="minute">
                    <option value="0">00</option>
                    <option value="10">10</option>
                    <option value="20">20</option>
                    <option value="30">30</option>
                    <option value="40">40</option>
                    <option value="50">50</option>
                  </select>
                </div>
              </div>
              <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 am-text-right">当前状态</div>
                <div class="am-u-sm-8 am-u-md-10">
                  <input type="text" style="width:250px;" value="#(status.getStr(scheduler.status??0))" disabled>
                  <input type="hidden" name="scheduler.status" value="#(scheduler.status)">
                </div>
              </div>
              <hr/>
              <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 am-text-right">库管员账号</div>
                <div class="am-u-sm-8 am-u-md-10">
                  <input type="text" style="width:250px;" name="name" id="name" >
                </div>
              </div>
              <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 am-text-right">账号密码</div>
                <div class="am-u-sm-8 am-u-md-10">
                  <input type="password" style="width:250px;" name="password" id="password">
                </div>
              </div>
              <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 am-text-right">
                </div>
                <div class="am-u-sm-8 am-u-md-10">
                  <div class="am-margin">
                    <button type="button" class="am-btn am-btn-primary am-btn-xs" onclick="submitForm();">&nbsp;提交保存&nbsp;</button>
                    <button type="button" class="am-btn am-btn-default am-btn-xs" onclick="window.location.href='/store/index';">&nbsp;返    回&nbsp;</button>
                  </div>
                </div>
              </div>
            </div>
          </form>
      </div>
    </div>

  </div>
  <!-- content end -->
</div>

<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>

<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="/assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="/assets/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="/assets/js/amazeui.min.js"></script>
<script src="/assets/js/app.js"></script>
<script>
  function submitForm() {
    if($("#name").val() == "" || $("#password").val() == "") {
      alert("修改入场计划必须填写库管员账号信息");
      return;
    } else {
      document.forms[0].submit();
    }
  }
</script>
</body>
</html>
